<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:include value="/layout/header.jsp" />
<!-- B.1 MAIN CONTENT -->
<div class="main-content">
    <h1 class="pagetitle"><s:property value="news.title"/></h1>
    <s:property value="news.time.toLocaleString()"/>
    <div class="column1-unit">
        <br>
        <p>
            <s:property value="news.cotent" escape="false"/>
        </p>
    </div>
    <hr class="clear-contentunit" />
    <s:if test="isAuthor">
        <a href="editNews.action?newsId=<s:property value='news.id'></s:property>">编辑</a>|
        <a href="deleteNews.action?id=<s:property value='news.id'></s:property>">删除</a>
    </s:if>

        <a href="<%=request.getAttribute("pre_url")%>">返回上一页</a>
</div>
<s:include value="/layout/footer.jsp"/>